package net.haiyue.api.entity.viewModel;

import java.util.Arrays;
import java.util.Date;

public class ModuleViewModel{
    private int pid;
    private String name;
    private int percent;
    private Date time_begin;
    private int pre_duration;
    private String comment;
    private Integer[] uids;

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPercent() {
        return percent;
    }

    public void setPercent(int percent) {
        this.percent = percent;
    }

    public Date getTime_begin() {
        return time_begin;
    }

    public void setTime_begin(Date time_begin) {
        this.time_begin = time_begin;
    }

    public int getPre_duration() {
        return pre_duration;
    }

    public void setPre_duration(int duration) {
        this.pre_duration = duration;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer[] getUids() {
        return uids;
    }

    public void setUids(Integer[] uids) {
        this.uids = uids;
    }

    @Override
    public String toString() {
        return "ModuleViewModel{" +
                "pid=" + pid +
                ", name='" + name + '\'' +
                ", percent=" + percent +
                ", time_begin=" + time_begin +
                ", duration=" + pre_duration +
                ", comment='" + comment + '\'' +
                ", uids=" + Arrays.toString(uids) +
                '}';
    }
}
